<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ControlledVocabularyDataset" targetNamespace="http://cuahsi.org/ControlledVocabulay.xsd" xmlns:mstns="http://cuahsi.org/ControlledVocabulay.xsd" xmlns="http://cuahsi.org/ControlledVocabulay.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="ODConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Public" Name="ODConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WaterOneFlow.odm.v1_1.Properties.Settings.GlobalReference.Default.ODConnectionString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QualityControlLevelsTableAdapter" GeneratorDataComponentClassName="QualityControlLevelsTableAdapter" Name="QualityControlLevels" UserDataComponentName="QualityControlLevelsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ODConnectionString (Settings)" DbObjectName="LittleBear11.dbo.QualityControlLevels" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>DELETE FROM [QualityControlLevels] WHERE (([QualityControlLevelID] = @Original_QualityControlLevelID) AND ([QualityControlLevelCode] = @Original_QualityControlLevelCode) AND ([Definition] = @Original_Definition))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QualityControlLevelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityControlLevelID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_QualityControlLevelCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QualityControlLevelCode" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Definition" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Definition" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>INSERT INTO [QualityControlLevels] ([QualityControlLevelCode], [Definition], [Explanation]) VALUES (@QualityControlLevelCode, @Definition, @Explanation);
SELECT QualityControlLevelID, QualityControlLevelCode, Definition, Explanation FROM QualityControlLevels WHERE (QualityControlLevelID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QualityControlLevelCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QualityControlLevelCode" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Definition" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Definition" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Explanation" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Explanation" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     QualityControlLevels.*
FROM         QualityControlLevels</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>UPDATE [QualityControlLevels] SET [QualityControlLevelCode] = @QualityControlLevelCode, [Definition] = @Definition, [Explanation] = @Explanation WHERE (([QualityControlLevelID] = @Original_QualityControlLevelID) AND ([QualityControlLevelCode] = @Original_QualityControlLevelCode) AND ([Definition] = @Original_Definition));
SELECT QualityControlLevelID, QualityControlLevelCode, Definition, Explanation FROM QualityControlLevels WHERE (QualityControlLevelID = @QualityControlLevelID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@QualityControlLevelCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QualityControlLevelCode" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Definition" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Definition" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Explanation" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Explanation" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QualityControlLevelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityControlLevelID" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_QualityControlLevelCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="QualityControlLevelCode" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Definition" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Definition" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="QualityControlLevelID" ColumnName="QualityControlLevelID" DataSourceName="LittleBear11.dbo.QualityControlLevels" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QualityControlLevelID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QualityControlLevelID" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="QualityControlLevelID" DataSetColumn="QualityControlLevelID" />
              <Mapping SourceColumn="QualityControlLevelCode" DataSetColumn="QualityControlLevelCode" />
              <Mapping SourceColumn="Definition" DataSetColumn="Definition" />
              <Mapping SourceColumn="Explanation" DataSetColumn="Explanation" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ControlledVocabularyDataset" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_UserDSName="ControlledVocabularyDataset" msprop:Generator_DataSetName="ControlledVocabularyDataset">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="QualityControlLevels" msprop:Generator_UserTableName="QualityControlLevels" msprop:Generator_RowDeletedName="QualityControlLevelsRowDeleted" msprop:Generator_RowChangedName="QualityControlLevelsRowChanged" msprop:Generator_RowClassName="QualityControlLevelsRow" msprop:Generator_RowChangingName="QualityControlLevelsRowChanging" msprop:Generator_RowEvArgName="QualityControlLevelsRowChangeEvent" msprop:Generator_RowEvHandlerName="QualityControlLevelsRowChangeEventHandler" msprop:Generator_TableClassName="QualityControlLevelsDataTable" msprop:Generator_TableVarName="tableQualityControlLevels" msprop:Generator_RowDeletingName="QualityControlLevelsRowDeleting" msprop:Generator_TablePropName="QualityControlLevels">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="QualityControlLevelID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="QualityControlLevelID" msprop:Generator_ColumnPropNameInRow="QualityControlLevelID" msprop:Generator_ColumnVarNameInTable="columnQualityControlLevelID" msprop:Generator_ColumnPropNameInTable="QualityControlLevelIDColumn" type="xs:int" />
              <xs:element name="QualityControlLevelCode" msprop:Generator_UserColumnName="QualityControlLevelCode" msprop:Generator_ColumnPropNameInRow="QualityControlLevelCode" msprop:Generator_ColumnVarNameInTable="columnQualityControlLevelCode" msprop:Generator_ColumnPropNameInTable="QualityControlLevelCodeColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Definition" msprop:Generator_UserColumnName="Definition" msprop:Generator_ColumnPropNameInRow="Definition" msprop:Generator_ColumnVarNameInTable="columnDefinition" msprop:Generator_ColumnPropNameInTable="DefinitionColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Explanation" msprop:Generator_UserColumnName="Explanation" msprop:Generator_ColumnPropNameInRow="Explanation" msprop:Generator_ColumnVarNameInTable="columnExplanation" msprop:Generator_ColumnPropNameInTable="ExplanationColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:QualityControlLevels" />
      <xs:field xpath="mstns:QualityControlLevelID" />
    </xs:unique>
  </xs:element>
</xs:schema>